package com.nxw.springcloud.admin.respository;

import com.nxw.springcloud.admin.entity.AppKeyAndSecret;
import com.nxw.springcloud.admin.enums.EnvironmentEnum;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @program: dynamic-route
 * @description:
 * @author: nxw
 * @create: 2020-02-25 10:03
 **/
public interface AppKeyAndSecretDao extends JpaRepository<AppKeyAndSecret,Long> {

    AppKeyAndSecret findAppKeyAndSecretByAppKeyAndEnvironment(String appKey, EnvironmentEnum environmentEnum);
}
